package Demo;

public class Person {
    int id;
    String name;
    public Person(int id,String name){
        this.id =id;
        this.name = name;
    }
    public boolean compareTo(Person ps){
        return this.id == ps.id;
    }
}
